<template>
  <div>
    子组件
    {{ value }}
    {{ msg }}
  </div>
</template>
<script lang="ts">
import { Vue, Component, Watch, Prop } from "vue-property-decorator";
// 每个组件必须加
@Component
export default class childCom extends Vue {
  msg = "我是子组件包";
  @Prop(Number) value!: number;
}
</script>
